/*
 * @Author: 梁青春
 * @Date: 2025-11-11 16:14:42
 * @LastEditTime: 2025-11-17 20:03:57
 * @LastEditors: 梁青春
 */
import request from '@/utils/request'

// 入院列表
export function getAdmissionList(data) {
  return request({
    url: '/system/admission/list',
    method: 'post',
    data
  })
}

// 编辑入院登记
export function updateAdmission(data) {
  return request({
    url: '/system/admission/update',
    method: 'post',
    data
  })
}

// 获取住院号
export function getHospitalizationNo() {
  return request({
    url: '/system/admission/getHospitalizationNo',
    method: 'post'
  })
}

// 使用住院号查询详情
export function getAdmissionRegInfoByHospitalizationNo(hospitalizationNo) {
  return request({
    url: '/system/admission/getAdmissionRegInfo',
    method: 'get',
    params: {
      hospitalizationNumber: hospitalizationNo
    }
  })
}

// 入院登记
export function registerAdmission(data) {
  return request({
    url: '/system/admission/register',
    method: 'post',
    data
  })
}

// 入院办理
export function handleAdmission(data) {
  return request({
    url: '/system/admission/handle',
    method: 'post',
    data
  })
}

// 入院记录列表
export function getAdmissionRecordList(data) {
  return request({
    url: '/system/admission/record/list',
    method: 'get',
    params: data
  })
}

// 押金缴纳
export function payDeposit(data) {
  return request({
    url: '/system/admission/payDeposit',
    method: 'post',
    data
  })
}

// 缴纳押金历史
export function loadPaymentList(data) {
  return request({
    url: '/system/admission/deposit/record/list',
    method: 'get',
    params: data
  })
}
